<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>test Obj</title>
		<script>
			//声明对象
			function Person() {}
			// //创建对象方式1
			var p1 = new Person();
			p1.name = "刘亦菲";
			p1.age = 18;
			console.log(p1);
			p1.method = function() {
				console.log("我是" + this.name);
			}
			p1.method();
		</script>
	</head>
	<body>
	</body>
</html>
